import 'package:flutter/material.dart';
import 'package:flutter_study/ali_icon_font.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: false),
      home: Scaffold(
        appBar: AppBar(title: Text("app")),
        body: MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: <Widget>[
        ListTile(
          leading: Icon(Aliiconfont.fullScrean),
          title: Text("首页"),
          trailing: Icon(Icons.chevron_right_sharp),
        ),
        Divider(),
        ListTile(
          leading: Icon(Aliiconfont.fullScrean),
          title: Text("全部订单"),
          trailing: Icon(Icons.chevron_right_sharp),
        ),
        Divider(),
        ListTile(
          leading: Image.network(
            "https://pics6.baidu.com/feed/bd3eb13533fa828b702d3231397c3d24960a5a4e.jpeg@f_auto?token=a1d810d3fd31543cc470f6117b90e06a",
            width: 80,
            height: 150,
            fit: BoxFit.cover,
          ),
          title: Text("百度新闻是包含海量资讯的新闻服务平台,真实反映每时每刻的新闻热点。"),
          subtitle: Text("您可以搜索新闻事件、热点话题、人物动态、产品资讯等,快速了解它们的最新进展。"),
        ),
        Divider(),
      ],
    );
  }
}
